import instance from "../../utils/request"
// 工资报表API文件

// 获取组织架构
export  function getOrgList(yearMonth) {
 return instance.get(`/salarys/reports/${yearMonth}?yearMonth=${yearMonth}`)
}
// 导出
export  function exportExcel(yearMonth) {
  return instance.get(`/salarys/historys/${yearMonth}/export`)
}
// 创建报表
export  function createReport(yearMonth) {
  return instance.put(`/salarys/reports/${yearMonth}/newReport`)
}
// 报表归档
export  function archiveReport(yearMonth) {
  return instance.post(`/salarys/historys/${yearMonth}/archive`)
}